package com.my_musc_service;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//启用异步
@EnableAsync
//启用切面
@EnableAspectJAutoProxy
//Mybatis扫描包
@MapperScan("com.my_musc_service.dao")
//启用spring事务
@EnableTransactionManagement
@SpringBootApplication
public class MyMuscServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyMuscServiceApplication.class, args);
    }

}
